<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SAFramelessHelper类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_frameless_helper.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_s_a_frameless_helper-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SAFramelessHelper类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>该类用于帮助实现无边框窗体的移动和缩放功能。  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_frameless_helper_8h_source.html">SAFramelessHelper.h</a>&gt;</code></p>
<div class="dynheader">
类 SAFramelessHelper 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_frameless_helper.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_frameless_helper_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5da442a3b18b7ac101d3774a8fbf234b" id="r_a5da442a3b18b7ac101d3774a8fbf234b"><td class="memItemLeft" align="right" valign="top"><a id="a5da442a3b18b7ac101d3774a8fbf234b" name="a5da442a3b18b7ac101d3774a8fbf234b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SAFramelessHelper</b> (QObject *parent)</td></tr>
<tr class="separator:a5da442a3b18b7ac101d3774a8fbf234b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8de5a36386b803ca638afb1ea5c6230" id="r_ad8de5a36386b803ca638afb1ea5c6230"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad8de5a36386b803ca638afb1ea5c6230">activateOn</a> (QWidget *topLevelWidget)</td></tr>
<tr class="memdesc:ad8de5a36386b803ca638afb1ea5c6230"><td class="mdescLeft">&#160;</td><td class="mdescRight">激活指定的顶级窗体 使指定的顶级窗体能够使用 <a class="el" href="class_s_a_frameless_helper.html" title="该类用于帮助实现无边框窗体的移动和缩放功能。">SAFramelessHelper</a> 提供的无边框移动和缩放功能。  <br /></td></tr>
<tr class="separator:ad8de5a36386b803ca638afb1ea5c6230"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5c134c383ebcf71bcc6b5fb769e122" id="r_abf5c134c383ebcf71bcc6b5fb769e122"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abf5c134c383ebcf71bcc6b5fb769e122">removeFrom</a> (QWidget *topLevelWidget)</td></tr>
<tr class="memdesc:abf5c134c383ebcf71bcc6b5fb769e122"><td class="mdescLeft">&#160;</td><td class="mdescRight">从指定的顶级窗体移除帮助功能 停止对指定顶级窗体的无边框移动和缩放功能支持。  <br /></td></tr>
<tr class="separator:abf5c134c383ebcf71bcc6b5fb769e122"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc2dc8821a62505cda4a4ca2d25197ad" id="r_adc2dc8821a62505cda4a4ca2d25197ad"><td class="memItemLeft" align="right" valign="top"><a id="adc2dc8821a62505cda4a4ca2d25197ad" name="adc2dc8821a62505cda4a4ca2d25197ad"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setWidgetMovable</b> (bool movable)</td></tr>
<tr class="separator:adc2dc8821a62505cda4a4ca2d25197ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af444412e09a1c2a38af36b703b7a90d6" id="r_af444412e09a1c2a38af36b703b7a90d6"><td class="memItemLeft" align="right" valign="top"><a id="af444412e09a1c2a38af36b703b7a90d6" name="af444412e09a1c2a38af36b703b7a90d6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setWidgetResizable</b> (bool resizable)</td></tr>
<tr class="separator:af444412e09a1c2a38af36b703b7a90d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27fb6b6369f3cc745c4c125705075bba" id="r_a27fb6b6369f3cc745c4c125705075bba"><td class="memItemLeft" align="right" valign="top"><a id="a27fb6b6369f3cc745c4c125705075bba" name="a27fb6b6369f3cc745c4c125705075bba"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRubberBandOnMove</b> (bool movable)</td></tr>
<tr class="separator:a27fb6b6369f3cc745c4c125705075bba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21d6613af5f27f5ff2288b7a668615c3" id="r_a21d6613af5f27f5ff2288b7a668615c3"><td class="memItemLeft" align="right" valign="top"><a id="a21d6613af5f27f5ff2288b7a668615c3" name="a21d6613af5f27f5ff2288b7a668615c3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRubberBandOnResize</b> (bool resizable)</td></tr>
<tr class="separator:a21d6613af5f27f5ff2288b7a668615c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab87d21bfba2a114ddf4b99eee9b2e703" id="r_ab87d21bfba2a114ddf4b99eee9b2e703"><td class="memItemLeft" align="right" valign="top"><a id="ab87d21bfba2a114ddf4b99eee9b2e703" name="ab87d21bfba2a114ddf4b99eee9b2e703"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setBorderWidth</b> (int width)</td></tr>
<tr class="separator:ab87d21bfba2a114ddf4b99eee9b2e703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06f6eb56c2fa361c5f315afa358a99cf" id="r_a06f6eb56c2fa361c5f315afa358a99cf"><td class="memItemLeft" align="right" valign="top"><a id="a06f6eb56c2fa361c5f315afa358a99cf" name="a06f6eb56c2fa361c5f315afa358a99cf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTitleHeight</b> (int height)</td></tr>
<tr class="separator:a06f6eb56c2fa361c5f315afa358a99cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab509d63780fadde3aa01c5cfae1299d3" id="r_ab509d63780fadde3aa01c5cfae1299d3"><td class="memItemLeft" align="right" valign="top"><a id="ab509d63780fadde3aa01c5cfae1299d3" name="ab509d63780fadde3aa01c5cfae1299d3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>widgetResizable</b> ()</td></tr>
<tr class="separator:ab509d63780fadde3aa01c5cfae1299d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af91e0e869b094f1cec0e8ff3593e89c9" id="r_af91e0e869b094f1cec0e8ff3593e89c9"><td class="memItemLeft" align="right" valign="top"><a id="af91e0e869b094f1cec0e8ff3593e89c9" name="af91e0e869b094f1cec0e8ff3593e89c9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>widgetMovable</b> ()</td></tr>
<tr class="separator:af91e0e869b094f1cec0e8ff3593e89c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b747f0c8bd4aee50bcb666e09381900" id="r_a4b747f0c8bd4aee50bcb666e09381900"><td class="memItemLeft" align="right" valign="top"><a id="a4b747f0c8bd4aee50bcb666e09381900" name="a4b747f0c8bd4aee50bcb666e09381900"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>rubberBandOnMove</b> ()</td></tr>
<tr class="separator:a4b747f0c8bd4aee50bcb666e09381900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06975a1fca40e716edab3f739a168bf3" id="r_a06975a1fca40e716edab3f739a168bf3"><td class="memItemLeft" align="right" valign="top"><a id="a06975a1fca40e716edab3f739a168bf3" name="a06975a1fca40e716edab3f739a168bf3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>rubberBandOnResisze</b> ()</td></tr>
<tr class="separator:a06975a1fca40e716edab3f739a168bf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab332932f75ec3e597933c514e54e318d" id="r_ab332932f75ec3e597933c514e54e318d"><td class="memItemLeft" align="right" valign="top"><a id="ab332932f75ec3e597933c514e54e318d" name="ab332932f75ec3e597933c514e54e318d"></a>
uint&#160;</td><td class="memItemRight" valign="bottom"><b>borderWidth</b> ()</td></tr>
<tr class="separator:ab332932f75ec3e597933c514e54e318d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d36164ad6481361caea5ad0c2edc2f1" id="r_a5d36164ad6481361caea5ad0c2edc2f1"><td class="memItemLeft" align="right" valign="top"><a id="a5d36164ad6481361caea5ad0c2edc2f1" name="a5d36164ad6481361caea5ad0c2edc2f1"></a>
uint&#160;</td><td class="memItemRight" valign="bottom"><b>titleHeight</b> ()</td></tr>
<tr class="separator:a5d36164ad6481361caea5ad0c2edc2f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:acb76d282fb1fe19af1368ff627df78e9" id="r_acb76d282fb1fe19af1368ff627df78e9"><td class="memItemLeft" align="right" valign="top"><a id="acb76d282fb1fe19af1368ff627df78e9" name="acb76d282fb1fe19af1368ff627df78e9"></a>
static qreal&#160;</td><td class="memItemRight" valign="bottom"><b>getScreenDpiScale</b> (const QWidget *widget)</td></tr>
<tr class="separator:acb76d282fb1fe19af1368ff627df78e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a350a46c1dd11934487a16ebfeb2ef87c" id="r_a350a46c1dd11934487a16ebfeb2ef87c"><td class="memItemLeft" align="right" valign="top"><a id="a350a46c1dd11934487a16ebfeb2ef87c" name="a350a46c1dd11934487a16ebfeb2ef87c"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (QObject *obj, QEvent *event)</td></tr>
<tr class="separator:a350a46c1dd11934487a16ebfeb2ef87c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a57f6d6bfe3b2ca219814b80d6578d153" id="r_a57f6d6bfe3b2ca219814b80d6578d153"><td class="memItemLeft" align="right" valign="top"><a id="a57f6d6bfe3b2ca219814b80d6578d153" name="a57f6d6bfe3b2ca219814b80d6578d153"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SAPrivateFramelessWidgetData</b></td></tr>
<tr class="separator:a57f6d6bfe3b2ca219814b80d6578d153"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>该类用于帮助实现无边框窗体的移动和缩放功能。 </p>
<p><a class="el" href="class_s_a_frameless_helper.html" title="该类用于帮助实现无边框窗体的移动和缩放功能。">SAFramelessHelper</a> 提供了一系列方法来激活、移除无边框窗体，设置窗体的移动、缩放属性， 以及橡皮筋效果等。通过事件过滤机制，它能够处理鼠标事件，从而实现窗体的移动和缩放操作。 </p>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_c_1_2src_2_qt_2_s_a_ribbon_2src_2_s_a_ribbon_bar_2_s_a_frameless_helper_8h-example.html#_a0">C:/src/Qt/SARibbon/src/SARibbonBar/SAFramelessHelper.h</a>.</dd>
</dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ad8de5a36386b803ca638afb1ea5c6230" name="ad8de5a36386b803ca638afb1ea5c6230"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8de5a36386b803ca638afb1ea5c6230">&#9670;&#160;</a></span>activateOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAFramelessHelper::activateOn </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>topLevelWidget</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>激活指定的顶级窗体 使指定的顶级窗体能够使用 <a class="el" href="class_s_a_frameless_helper.html" title="该类用于帮助实现无边框窗体的移动和缩放功能。">SAFramelessHelper</a> 提供的无边框移动和缩放功能。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">topLevelWidget</td><td>要激活的顶级窗体指针。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_c_1_2src_2_qt_2_s_a_ribbon_2src_2_s_a_ribbon_bar_2_s_a_frameless_helper_8h-example.html#a1">C:/src/Qt/SARibbon/src/SARibbonBar/SAFramelessHelper.h</a>.</dd>
</dl>

</div>
</div>
<a id="abf5c134c383ebcf71bcc6b5fb769e122" name="abf5c134c383ebcf71bcc6b5fb769e122"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf5c134c383ebcf71bcc6b5fb769e122">&#9670;&#160;</a></span>removeFrom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAFramelessHelper::removeFrom </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>topLevelWidget</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从指定的顶级窗体移除帮助功能 停止对指定顶级窗体的无边框移动和缩放功能支持。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">topLevelWidget</td><td>要移除功能的顶级窗体指针。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_frameless_helper_8h_source.html">SAFramelessHelper.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SAFramelessHelper.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_frameless_helper.html">SAFramelessHelper</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
